import requests
from requests.adapters import HTTPAdapter


#
# class MyHTTPAdapter(HTTPAdapter):
#     def __init__(self, **kwargs):
#         super().__init__(self, **kwargs)


def my_conn():
    s = requests.Session()
    a = requests.adapters.HTTPAdapter(pool_connections=2, pool_maxsize=2, max_retries=3)
    s.mount('http://', a)
    for i in range(4):
        r = requests.get("http://manyouyu-spider-data.weiming.dev5.internal.yiyao.cc/crawl/getKeyWord?type=3")
        print(r.status_code)


my_conn()



